---
title: "Github GraphQL 接口"
date: 2021-11-8
categories:
- graphql
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgd07c19d">错误</a>
<ul>
<li><a href="#org22910f9">Query 不存在的实体</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="outline-2" id="outline-container-orgd07c19d">
<h2 id="orgd07c19d">错误</h2>
<div class="outline-text-2" id="text-orgd07c19d">
</div>
<div class="outline-3" id="outline-container-org22910f9">
<h3 id="org22910f9">Query 不存在的实体</h3>
<div class="outline-text-3" id="text-org22910f9">
<div class="org-src-container">
<pre class="src src-graphql">query { 
  repository(name: "asdf", owner: "gdme1320") { 
    createdAt
   }
}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-json">{
  "data": {
    "repository": null
  },
  "errors": [
    {
      "type": "NOT_FOUND",
      "path": [
	"repository"
      ],
      "locations": [
	{
	  "line": 7,
	  "column": 3
	}
      ],
      "message": "Could not resolve to a Repository with the name 'gdme1320/asdf'."
    }
  ]
}
</pre>
</div>
</div>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2021-11-8</p>
<p class="author">Author: gdme1320</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
